<template>
  <!-- 我的审批 -->
  <view class="card-order">
    <!-- 卡片list -->
    <applyCardList class="apply-three"
      :dataList="applyArrList"
    >
    </applyCardList>
  </view>
</template>

<script setup>
import { ref } from 'vue';
import applyCardList from "/components/apply-sku-order/card-list.vue"

/* 数据列 */ 
const applyArrList = ref([])
/* 获取领料单数据 */ 
const getApplyData = async (item)=> {
  const { data: res } = await uni.$http.get('/getMaterialApply',{storageCode: item !== undefined ? item.storageCode : ''})
  
  if(res.success){
    applyArrList.value = res.data
  } else {
    uni.showToast({ duration: 3000, icon:'none', title:res.msg })
  }
}
getApplyData()
</script>

<style lang="scss">
</style>